package com.ruoyi.system.mapper;

import java.util.List;
import com.ruoyi.system.domain.AdminUserFlowing;
import org.apache.ibatis.annotations.Param;

/**
 * 用户流水记录Mapper接口
 *
 * @author ruoyi
 * @date 2020-11-13
 */
public interface AdminUserFlowingMapper
{
    /**
     * 查询用户流水记录
     *
     * @param id 用户流水记录ID
     * @return 用户流水记录
     */
    public AdminUserFlowing selectAdminUserFlowingById(Long id);

    public AdminUserFlowing selectAdminUserFlowingByBetId(Long betId);

    /**
     * 查询用户流水记录列表
     *
     * @param adminUserFlowing 用户流水记录
     * @return 用户流水记录集合
     */
    public List<AdminUserFlowing> selectAdminUserFlowingList(AdminUserFlowing adminUserFlowing);

    /**
     * 新增用户流水记录
     *
     * @param adminUserFlowing 用户流水记录
     * @return 结果
     */
    public int insertAdminUserFlowing(AdminUserFlowing adminUserFlowing);

    /**
     * 修改用户流水记录
     *
     * @param adminUserFlowing 用户流水记录
     * @return 结果
     */
    public int updateAdminUserFlowing(AdminUserFlowing adminUserFlowing);

    /**
     * 删除用户流水记录
     *
     * @param id 用户流水记录ID
     * @return 结果
     */
    public int deleteAdminUserFlowingById(Long id);

    public int deleteAdminUserFlowingByRoomAndPeriod(@Param("room") String room,@Param("period") Long period);

    public int deleteAdminUserFlowingByRoomAndPriceAndWeixinId(AdminUserFlowing adminUserFlowing);

    /**
     * 批量删除用户流水记录
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteAdminUserFlowingByIds(Long[] ids);
}
